let fs =require('fs');//声明变量
let path=require('path');
let json_path=path.resolve(__dirname,'zhousi.JSON')
let html_path=path.resolve(__dirname,'table.html')

fs.readFile('json_path',function (err,data) {
	if(err){throw err;
		var tablestr="";
		var str=`

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
 <table>${tablestr}</table>
</body>
</html>
`;

		fs.writeFile(html_path,str,function (err2) {
		if(err2)
    throw err2;
    console.log ('已完成 你去看看吧');
		
		});


	}
})


